package cn.qin.action;
import cn.qin.model.SPgoods;
import cn.qin.service.marketService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
public class addSpAction extends ActionSupport {
	SPgoods goods = new SPgoods();
	marketService ms = new marketService();
	public SPgoods getGoods() {
		return goods;
	}
	public void setGoods(SPgoods goods) {
		this.goods = goods;
	}

	public String execute(){	
		ms.addSP(this.getGoods());
		System.out.println("add");
		System.out.println(goods.getSPcategory());
		return Action.SUCCESS;
	}
}
